package com.his.controller;

import com.his.service.MenusService;
import com.his.vo.TreeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class MenuController {

    @Autowired
    private MenusService menusService;

    /*处理加载菜单节点的请求*/
    @GetMapping("/queryMenusList")
    public List<TreeVo> queryMenusList(){
        return menusService.queryTreeVoList();
    }
}
